package com.buer.storage.service;

import com.buer.storage.dto.*;
import com.buer.storage.entity.*;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;


public interface AorderService {
    //增加入库
    int insert(AorderStorageDto aorderStorageDto);

    int insertBatch(BatchAllotDto batchAllotDto);
    int updateBatch(BatchAllotDto batchAllotDto);
    int updateOrder(AllotBatchDto allotBatchDto);
    int deleteBatch(BatchAllotDto batchAllotDto);

    //查询入库表
    List<AorderSelectDto> findAorderAllById(int allotId);

    PageInfo<AorderDto> selectByAll(Map<String, Object> map);

    //查询调拨信息表
    List<AorderDto> findAorder();

    //根据调拨表id删除调拨信息
    int deleteAorderById(int allotId);

    //更新商品
    int updateAorderdetails(AorderStorageDto aorderStorageDto);

    //增加入库单
    int submitAddBuerStock(int allotId);

    PageInfo<AorderDto> getAord(Map<String, Object> map);

    PageInfo<AorderdetailsDto> getAorderdetails(Map<String, Object> map);
}
